Skip to content

Conversation

laurgarn
Copy link
Contributor

In stead of
{"@type":"java.util.RegularEnumSet","@Items":[{"@type":"com.cedarsoftware.util.io.TestEmptyEnumSetOnJDK17$TestEnum","name":"V1"},{"@type":"com.cedarsoftware.util.io.TestEmptyEnumSetOnJDK17$TestEnum","name":"V2"}]}
serialize to
{"@enum":"com.cedarsoftware.util.io.TestEmptyEnumSetOnJDK17$TestEnum","@Items":["V1","V2"]}
not repeating the enum class nor the enumset implementation that is a consequence of the number of entries of the enum.

@jdereg jdereg merged commit 79c6c65 into jdereg:master Sep 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants